<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ page import="java.util.Calendar"%>
<%@ page import="java.text.SimpleDateFormat"%>  
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>企业历史信息转入</title>
<link href="<%=request.getContextPath()%>/css/reset.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
<script language="javascript" src="<%=request.getContextPath()%>/js/meizzDate.js"></script>
<script type="text/javascript">
	function check(){
		var frm = document.form1;
		if(frm.empHistoryYear.value == ""){
			alert("请选择要导入的单位信息年度！");
			frm.empHistoryYear.focus();
			return false;
		}
	}
</script>
</head>
<body>
<form name="form1" action="<%=request.getContextPath()%>/unitinfo.do?method=toHistory" method="post" onsubmit="return check()" target="sbt">
<table width="80%">
<%			String year=new SimpleDateFormat("yyyy").format(Calendar.getInstance().getTime());
			int nowYear = Integer.parseInt(year);
			int startYear = nowYear-10;
			request.setAttribute("startYear", startYear);
			request.setAttribute("nowYear", nowYear);
%>
 <tr>
    <td class="bg_blue" align="right" width="110">年度：</td>
   <td width="589">
    <select name="empHistoryYear">
    <option value="">请选择</option>
     <c:forEach var="x" begin="${startYear}" end="${nowYear}" step="1">
    <option value="${x}">${x}</option>
    </c:forEach>
    </select>
    </td>
 </tr>
 
 <tr>
    <td class="nohover" colspan="2" align="center"><input class="buttonsubmit" type="submit" value="提交">&nbsp;&nbsp;&nbsp;&nbsp;<input class="buttonreset" type="reset" value="重置"></td>
  </tr>
</table>
</form>
<iframe name="sbt" src="" frameBorder="0" width="0" height="0"></iframe>
</body>
</html>

